import java.util.*;

/**
* This is the calculation class which is just show the student marks 
* and to calculat the average of this mark and show it.
*/
class Calculation{

	 int m1,m2,m3;
	 int totle;
	 float avg;
	public Calculation(){
		try{
			EncapsulationTest encapsulation = new EncapsulationTest(98,89,90);
			m1=encapsulation.getM1();
			m2=encapsulation.getM2();
			m3=encapsulation.getM3();
			avg=encapsulation.calculateAvg();
			
			//printInfo(m1,m2,m3,avg);

		}catch(Exception e){
			System.out.println("Exception in the calculation "+e.toString());
		}
	}
	public void printInfo(int m1,int m2, int m3, float avg){
		System.out.println("");
		System.out.println("*************  Student Basic Information ***********");
		System.out.println("Mark 1 is : "+m1 );
		System.out.println("Mark 2 is : "+ m2);
		System.out.println("Mark 3 is : "+ m3);
		System.out.println("");

		System.out.println("**************** Average Marks of student ********");
		System.out.println("Average:-> "+avg);
		
			
		
	}
		
}
